package com.th.controller;

import com.google.common.collect.Lists;
import com.th.common.domain.UsUser;
import com.th.config.web.BaseController;
import com.th.service.UsUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author tuhang
 * @PackageName nswcy-crowdsource-client-server
 * @Package com.th.controller
 * @Date 2023/6/7 9:51
 * @Version 1.0
 */
@RestController
@Api(tags = "测试控制器")
@RequestMapping("/api")
public class TestController extends BaseController {


    @Autowired
    private UsUserService userService;

    @GetMapping("/list")
    @ApiOperation("测试方法")
    public List<UsUser> queryList(){
        return  userService.list();
    }

}
